#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QImage>
#include <QFileDialog>
#include <QTimer>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    int doubleToInt(double d);
    void show_onlabel();
private slots:
    void on_action_Open_triggered();

    void on_action_Save_triggered();

    void on_actionJPG_triggered();

    void on_actionPNG_triggered();

    void on_actionTIFF_triggered();

    void on_pushButton_cgsz_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_phfix_clicked();

    void on_pushButton_grey_clicked();

    void on_pushButton_renew_clicked();

    void on_pushButton_cgbk_clicked();

    void on_pushButton_rgfc_clicked();

    void on_pushButton_soft_clicked();

    void on_pushButton_hard_clicked();

    void on_pushButton_ai_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_clean_clicked();

private:
    Ui::MainWindow *ui;
    cv::Mat image;
};

#endif // MAINWINDOW_H
